package com.kpmg.datalake.accountcheck.service.impl;

import java.util.List;

import org.springframework.stereotype.Service;

import com.baomidou.mybatisplus.service.impl.ServiceImpl;
import com.kpmg.datalake.accountcheck.dao.KpmgChkactSrcdtlMapper;
import com.kpmg.datalake.accountcheck.model.KpmgChkactSrcdtl;
import com.kpmg.datalake.accountcheck.service.IKpmgChkactSrcdtlService;
import com.kpmg.datalake.common.dynamicdatasource.DynamicDS;
import org.springframework.util.CollectionUtils;

/**	
 * <p>
 * 对账月度明细表_源表 服务实现类
 * </p>
 *
 * @author timqian
 * @since 2018-08-02
 */
@Service
public class KpmgChkactSrcdtlServiceImpl extends ServiceImpl<KpmgChkactSrcdtlMapper, KpmgChkactSrcdtl>implements IKpmgChkactSrcdtlService {
	
	@DynamicDS("projectId")
	@Override
	public boolean updateSrcdtlData(String projectId, List<KpmgChkactSrcdtl> entityList, int batchSize) {
		if (!CollectionUtils.isEmpty(entityList)) {
			return super.updateBatchById(entityList, batchSize);
		}
		return true;
	}
}
